#include<stdio.h>
/**
Sample Input
3 1 2 3
4 1 2 3 4
Sample output
6
10
*/
int main() {
    int A[100];
    int n,i;
    while(scanf("%d",&n)==1){
        for(i=0;i<n;i++)scanf("%d",A+i);
        int sum=0;
        for(i=0;i<n;i++)sum+=A[i];
        printf("%d\n",sum);
    }
    return 0;
}
